Skip to content

Add C++ rs_std::usize and rs_std::isize wrappers in int.h#1493

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_949185268
Jul 22, 2026
Merged

Add C++ rs_std::usize and rs_std::isize wrappers in int.h#1493
copybara-service[bot] merged 1 commit into
mainfrom
test_949185268

Conversation

@copybara-service

Copy link
Copy Markdown

Add C++ rs_std::usize and rs_std::isize wrappers in int.h

These will be used by template specializations to disambiguate between a specialization of usize and u64/u32 (or isize and i64/i32) when those might be the same type in C++. rs_std::usizeandrs_std::isize` will always be considered a new type in C++ and will never overlap with fundamental types.

@copybara-service
copybara-service Bot force-pushed the test_949185268 branch 5 times, most recently from 2aab4c9 to 1fdb033 Compare July 22, 2026 16:50
These will be used by template specializations to disambiguate between a specialization of `usize` and `u64`/`u32` (or `isize and `i64`/`i32`) when those might be the same type in C++. `rs_std::usize` and `rs_std::isize` will always be considered a new type in C++ and will never overlap with fundamental types.

PiperOrigin-RevId: 952180393
@copybara-service
copybara-service Bot merged commit 35150fb into main Jul 22, 2026
@copybara-service
copybara-service Bot deleted the test_949185268 branch July 22, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant